package com.btl.utils;

import com.btl.bean.Person;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class SavaPersonInfo {
	public static void saveInfo(Context context,Person p) {
		SharedPreferences sharedPreferences = context.getSharedPreferences("login",
				Context.MODE_PRIVATE); // 私有数据
	
		Editor editor = sharedPreferences.edit();// 获取编辑器
		editor.putString("id", p.getPid());
		editor.putString("pass", p.getPpass());
		editor.putString("nickname", p.getPnickname());
		editor.putString("phone", p.getPphone());
		editor.putString("intro", p.getPintro());
		editor.putString("avatar", p.getPavatar());
		editor.putString("zhuangtai", p.getZhuangtai());

		editor.commit();

	}
}
